import { request } from "../../utils/request";
const isD = import.meta.env.MODE === 'development'
    ? ''
    : ''

// 获取举报列表
export function getReportList(data: any) {
    return request({
        url: `${isD}/dpl/v2/admin/report`,
        method: "get",
        params: data,
    });
}

// 获取举报详情
export function getReportDetail(data: any) {
    return request({
        url: `${isD}/dpl/v2/admin/report/${data}`,
        method: "get",
        // params: data,
    });
}

// 处理举报
export function handleReport(data: any) {
    return request({
        method: "post",
        url: `${isD}/dpl/v2/admin/report`,
        data,
    });
}

// 删除
// export function feedbackDel(data: any) {
//     return request({
//         url: `${isD}/dpl/v1/admin/feedback/${data}`,
//         method: "delete",
//         // params: data,
//     });
// }